package com.yx.modules.api.dao;

import com.yx.common.utils.Query;
import com.yx.modules.api.entity.TbRewardRecord;
import com.yx.pc.api.Dto.TbRewardStatisticsDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 打赏记录
 * 
 * @author luo
 * @email www.baidu.com
 * @date 2018-06-12 14:34:41
 */
@Mapper
@Repository
public interface TbRewardRecordDao extends BaseDao<TbRewardRecord> {

    Integer findTotalByUserid(Integer userId);

    List<TbRewardRecord> queryList1(Query query);

    int queryTotal1(Query query);

    List<TbRewardRecord> findByBookid(Integer id);

    Integer rewardByCondition(Map<String,Object> map);

    List<TbRewardRecord> findByDate(Map<String, Object> map);
}
